package server;

import monitor.Monitor;
import util.GetProperties;

public class DirMonitorService {
	
	public static void main(String[] arg0){
		GetProperties pro=new GetProperties();
		
		String src=pro.getProperty("src");
		String logPath=pro.getProperty("log");
		int threadNum=new Integer(pro.getProperty("threadnum"));
		int interval=new Integer(pro.getProperty("interval"));
		
		
		Monitor monitor=new Monitor(src,logPath);
		monitor.CheckFile(interval, threadNum);
	}

}
